var models = require('../models');
var User = models.User;
var utility = require('utility');

exports.getUserById = function(id, callback){
  if(!id){
    return callback();
  }
  return User.findOne({_id: id}).populate('stars').populate('cheatsheets').exec();
}
